package com.acarter.scenemonitor.propertydescriptor;


import com.acarter.propertytable.PropertyTable;
import com.acarter.scenemonitor.propertydescriptor.A_PropertyPageHandler;
import com.acarter.scenemonitor.propertydescriptor.definitions.ControllerPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.DirectionalLightPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.GeometryPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.LightPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.NodePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.PointLightPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.SpatialPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.SpotLightPropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.TexturePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.AlphaStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.ClipStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.ColorMaskStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.CullStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.FogStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.LightStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.MaterialStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.RenderStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.ShadeStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.StencilStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.TextureStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.WireframeStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.definitions.renderstate.ZBufferStatePropertyPage;
import com.acarter.scenemonitor.propertydescriptor.editor.ColorRGBAEditor;
import com.acarter.scenemonitor.propertydescriptor.editor.QuaternionEditor;
import com.acarter.scenemonitor.propertydescriptor.editor.Vector3fEditor;
import com.acarter.scenemonitor.propertydescriptor.propertyobject.ColorRGBAPropertyObject;
import com.acarter.scenemonitor.propertydescriptor.propertyobject.QuaternionPropertyObject;
import com.acarter.scenemonitor.propertydescriptor.propertyobject.Vector3fPropertyObject;
import com.acarter.scenemonitor.propertydescriptor.renderer.ColorRGBARenderer;
import com.acarter.scenemonitor.propertydescriptor.renderer.QuaternionRenderer;
import com.acarter.scenemonitor.propertydescriptor.renderer.Vector3fRenderer;
import com.jme.image.Texture;
import com.jme.light.DirectionalLight;
import com.jme.light.Light;
import com.jme.light.PointLight;
import com.jme.light.SpotLight;
import com.jme.scene.Controller;
import com.jme.scene.Geometry;
import com.jme.scene.Node;
import com.jme.scene.Spatial;
import com.jme.scene.state.AlphaState;
import com.jme.scene.state.ClipState;
import com.jme.scene.state.ColorMaskState;
import com.jme.scene.state.CullState;
import com.jme.scene.state.FogState;
import com.jme.scene.state.LightState;
import com.jme.scene.state.MaterialState;
import com.jme.scene.state.RenderState;
import com.jme.scene.state.ShadeState;
import com.jme.scene.state.StencilState;
import com.jme.scene.state.TextureState;
import com.jme.scene.state.WireframeState;
import com.jme.scene.state.ZBufferState;

/**
 * @author Carter
 *
 */
public class StandardPropertyPageHandler extends A_PropertyPageHandler {

	/**
	 * 
	 * @param table
	 */
	public StandardPropertyPageHandler(PropertyTable table) {
		super(table);
	}

	/**
	 * 
	 */
	@Override
	protected void initPropertyPages(PropertyTable table) {

		table.addCellEditor(Vector3fPropertyObject.class, new Vector3fEditor());
		table.addCellEditor(QuaternionPropertyObject.class, new QuaternionEditor());
		table.addCellEditor(ColorRGBAPropertyObject.class, new ColorRGBAEditor());
		
		table.addCellRenderer(Vector3fPropertyObject.class, new Vector3fRenderer());
		table.addCellRenderer(QuaternionPropertyObject.class, new QuaternionRenderer());
		table.addCellRenderer(ColorRGBAPropertyObject.class, new ColorRGBARenderer());

		registerPropertyPage(Spatial.class, new SpatialPropertyPage());
		registerPropertyPage(Node.class, new NodePropertyPage());
		registerPropertyPage(Geometry.class, new GeometryPropertyPage());
		registerPropertyPage(Controller.class, new ControllerPropertyPage());
		registerPropertyPage(Light.class, new LightPropertyPage());
		registerPropertyPage(PointLight.class, new PointLightPropertyPage());
		registerPropertyPage(DirectionalLight.class, new DirectionalLightPropertyPage());
		registerPropertyPage(SpotLight.class, new SpotLightPropertyPage());
		registerPropertyPage(Texture.class, new TexturePropertyPage());
		registerPropertyPage(RenderState.class, new RenderStatePropertyPage());
		registerPropertyPage(AlphaState.class, new AlphaStatePropertyPage());
		registerPropertyPage(ClipState.class, new ClipStatePropertyPage());
		registerPropertyPage(ColorMaskState.class, new ColorMaskStatePropertyPage());
		registerPropertyPage(CullState.class, new CullStatePropertyPage());
		registerPropertyPage(FogState.class, new FogStatePropertyPage());
		registerPropertyPage(LightState.class, new LightStatePropertyPage());
		registerPropertyPage(MaterialState.class, new MaterialStatePropertyPage());
		registerPropertyPage(ShadeState.class, new ShadeStatePropertyPage());
		registerPropertyPage(StencilState.class, new StencilStatePropertyPage());
		registerPropertyPage(TextureState.class, new TextureStatePropertyPage());
		registerPropertyPage(WireframeState.class, new WireframeStatePropertyPage());
		registerPropertyPage(ZBufferState.class, new ZBufferStatePropertyPage());
	}

}
